﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using SaludOcupacional.DataAccess;
using SaludOcupacional.Exceptions;
using SaludOcupacional.Model;


namespace SaludOcupacional.Controller
{
    public class VistaReportesManager
    {

        public static Collection<Respiratorio> TodosRespiratorio()
        {
            using (VistaReportesDataAccess daccess = new VistaReportesDataAccess())
            {
                Collection<Respiratorio> lista = new Collection<Respiratorio>();
                lista = daccess.TodoRespiratorio();
                return lista;

            }
        }

        public static Collection<Audiometrico> TodosAudiometrico()
        {
            using (VistaReportesDataAccess daccess = new VistaReportesDataAccess())
            {
                Collection<Audiometrico> lista = new Collection<Audiometrico>();
                lista = daccess.TodoAudiometrico();
                return lista;

            }
        }

        public static Collection<Oftalmologico> TodosOftalmologico()
        {
            using (VistaReportesDataAccess daccess = new VistaReportesDataAccess())
            {
                Collection<Oftalmologico> lista = new Collection<Oftalmologico>();
                lista = daccess.TodoOftalmologico();
                return lista;

            }
        }

        public static Collection<Laboratorial> TodosLaboratorial()
        {
            using (VistaReportesDataAccess daccess = new VistaReportesDataAccess())
            {
                Collection<Laboratorial> lista = new Collection<Laboratorial>();
                lista = daccess.TodoLaboratorial();
                return lista;

            }
        }

        public static Collection<Carnet> TodosCarnet()
        {
            using (VistaReportesDataAccess daccess = new VistaReportesDataAccess())
            {
                Collection<Carnet> lista = new Collection<Carnet>();
                lista = daccess.TodoCarnet();
                return lista;

            }
        }
    }
}
